package com.todod.entity;

import lombok.Data;
import lombok.ToString;

import java.util.List;

/**
 * 查询条件
 * 
 * @ClassName: QueryEntry
 * @Description:
 * @author gsh
 * @date 2019年10月11日
 *
 */
@Data
@ToString
public class QueryEntry {

	private Long menuId;

	private String name;
	private String code;
	private String loginName;
	private String nickName;
	private String beginDate;
	private String endDate;
	private String state;
	private Long _userid;
	private String userId;
	private Long id;
	private List<Long> depertid;
	private String departmentname;
	private String queryDate;
	private String piciNum;
	private String tableName;
	private String type;
	private String title;

	private Long xmId;

	private int page = 1; // 页码

	private int limit = 10; // 每页条数

	public int getStart() {
		int start = (page - 1) * limit; // 起始页码
		return start;
	}

	@Override
	public String toString() {
		return "QueryEntry [name=" + name + ", code=" + code + ", loginName=" + loginName + ", nickName=" + nickName
				+ ", beginDate=" + beginDate + ", endDate=" + endDate + ", state=" + state + ", _userid=" + _userid
				+ ", page=" + page + ", limit=" + limit + "]";
	}

}
